package ufc.web.funcoes;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class EncerraSessao implements Acao {

	@Override
	public void executa(HttpServletRequest request, HttpServletResponse response) {
		HttpSession sessao = request.getSession();
		sessao.invalidate();
    	try {
			response.sendRedirect("Livros.jsp");
		} catch (IOException e) {

			e.printStackTrace();
		}
    

	}

}
